package com.kay.service.impl;

import com.kay.mapper.AccountMapper;
import com.kay.pojo.Account;
import com.kay.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Description:
 * @Author: Kay
 * @CreateDate: 2021/7/13$ 21:30$
 * @UpdateUser: Kay
 * @UpdateDate: 2021/7/13$ 21:30$
 */
@Transactional
@Service
public class AccountServiceImpl implements AccountService {

    @Autowired
    private AccountMapper accountMapper;

    @Override
    public List<Account> findAll() {
        return accountMapper.findAll();
    }
}
